package pe.com.upc.edu.rtt.datalayer.util;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;

import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;

public class Util {

	private static final Log _log = LogFactoryUtil.getLog(Util.class);

	public static void sendResponse(HttpServletResponse response, String contentType, String writeRespuesta) throws IOException {
		response.setContentType(contentType);
		PrintWriter writer = response.getWriter();
		writer.write(writeRespuesta);
		writer.flush();
		writer.close();
	}

}
